<?php
if(!empty($ketqua))
{?>
<table cellpadding="0" cellspacing="0" id="tables">
<tr>
<th>STT</th>
<th>MSSV</th>
<th>Họ tên</th>
<th>Điểm</th>
</tr>
<?php $i=1;?>
<?php foreach ($ketqua as $kq):?>
<tr>
<td><?php echo $i?></td>
<td><?php echo $kq['Sinhvien']['mssv']?></td>
<td><?php echo $kq['Sinhvien']['tenSV']?></td>
<td><?php echo $kq['Ketqua']['diem']?></td>
</tr>
<?php ++$i; 
endforeach;?>
</table>
<?php
}
else
{
	echo "<h2>Không có sinh viên nào</h2>";
}
?>